package com.wlz.jvm;

/**
 * @author wlz
 * @date 2022-03-21  8:52 下午
 */
public class ReferenceCountingGc {

    Object instance = null;

    public static void main(String[] args) {
        ReferenceCountingGc obja = new ReferenceCountingGc();
        ReferenceCountingGc objb = new ReferenceCountingGc();
        obja.instance = objb;
        objb.instance = obja;
        obja = null;
        objb = null;

    }
}
